package com.java.lesson.lesson2;

import java.util.Scanner;

public class Lesson27_ {
    public static void main(String[] args) {
        //扫描器
        int num = new Scanner(System.in).nextInt();
        //控制循环
        for (int i = 0; i < num; i++) {
            //控制输出空格
            for (int j = 0; j < num - i; j++) {
                System.out.print(" ");
            }
            //控制星星输出
            for (int k = 0; k < 2 * i + 1; k++) {
                System.out.print("*");
            }
            //换行
            System.out.println();
        }
    }
}


